package ro.imc.wifipassword;

import java.util.ArrayList;
import java.util.List;

import ro.imc.custom.wifipassword.PasswordListAdapter;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;

public class DashboardActivity extends Activity {
	private List<String> passwList = new ArrayList<String>();
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_dashboard);
		
		passwList.add("123");
		passwList.add("321");
		passwList.add("234");
		ListView passwordsList = (ListView)findViewById(R.id.passwordList);
		passwordsList.setAdapter(new PasswordListAdapter(getApplicationContext(),R.layout.network_list_items,passwList));
			
	
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.dashboard, menu);
		return true;
	}

}
